package hr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 岗位信息表
 * </p>
 *
 * @author zzh
 * @since 2023-12-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Positions对象", description = "岗位信息表")
public class Position implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("岗位ID，主键，自动增长")
    @TableId(value = "position_id", type = IdType.AUTO)
    private Integer positionId;

    @ApiModelProperty("岗位名称，不为空")
    private String positionName;

    @ApiModelProperty("所属部门ID，关联部门表")
    private Integer departmentId;

    @ApiModelProperty("岗位薪资")
    private Double salary;

    @ApiModelProperty("岗位状态")
    private Integer positionStatus;

    @ApiModelProperty("创建时间")
    private Long createTime;

    @ApiModelProperty("逻辑删除")
    @TableLogic
    private Integer isDeleted;
}
